//
//  LTChatroomManager.h
//  linktuIOS
//
//  Created by 俊松何 on 2017/5/19.
//  Copyright © 2017年 tianxie. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "LTChatroomManagerDelegate.h"
#import "LTError.h"

@interface LTChatroomManager : NSObject

@property (nonatomic,strong) NSMutableArray<id<LTChatroomManagerDelegate> >* chatRoomMangerdelegateArray;


/**
 添加回调代理
 
 @param deleagte 要添加的代理
 */
-(void)addDelegate:(id<LTChatroomManagerDelegate>)deleagte;


/**
 移除回调
 
 @param delegate 移除的代理
 */
-(void)removeDelegate:(id<LTChatroomManagerDelegate>)delegate;



/**
 加入聊天室

 @param roomId 房间ID
 @param completion  加入的回调
 */
-(void)joinChatRoom:(NSString *)roomId
         completion:(void (^)(LTError *lterror))completion;


/**
 退出聊天时的回调

 @param roomId 房间id
 @param completion 完成的回调
 */
-(void)leaveChatRoom:(NSString *)roomId
          completion:(void (^)(LTError *lterror))completion;
@end
